package com.hugboy.string;

import java.util.Scanner;

public class Demo8replace {
    public static void main(String[] args) {
        System.out.println("input a str:");
        Scanner sc = new Scanner(System.in);
        String scStr = sc.nextLine();
        String okStr = scStr.replace("TMD", "***");
        System.out.println(okStr);

    }
}
